<include file="public:header" />
<include file="public:left" />
	<form  method="post" enctype="multipart/form-data" id="brandForm">
		<input type="hidden" name="id" value="{$data.id}" />
     <section>
      <h2><strong>图文详情编辑</strong><a style="float: right" href="javascript:void(0)" onclick="history.go(-1)">返回上一页</a></h2>
      <ul class="ulColumn2">
          <li>
              <span class="item_name" style="width:120px;">标题：</span>
              <input type="text" class="textbox textbox_295" name="title" value="{$data.title}"/>
          </li>
          <li>
              <span class="item_name" style="width:120px;">描述：</span>
              <input type="text" class="textbox textbox_295" name="des" value="{$data.des}" style="width: 80%"/>
          </li>
          <li>
              <span class="item_name" style="width:120px;">内容：</span>
              <script id="editor" name="content" type="text/plain" style="width:700px;margin-left:150px;min-height:200px;">{$data.content}</script>
          </li>

          <li>
       <li>
        <span class="item_name" style="width:120px;"></span>
        <input type="button" class="link_btn" value="提交"/>
       </li>
      </ul>
     </section>
	 </form>
<script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor', {
     /*   toolbars: [
            ['insertunorderedlist', 'insertorderedlist', 'simpleupload']
        ],*/
        autoHeightEnabled: true,
        autoFloatEnabled: true
    });
     $(document).ready(function(){
		 //tab
		 $(".admin_tab li a").click(function(){
		  var liindex = $(".admin_tab li a").index(this);
		  $(this).addClass("active").parent().siblings().find("a").removeClass("active");
		  $(".admin_tab_cont").eq(liindex).fadeIn(150).siblings(".admin_tab_cont").hide();
		 });
		 $(".link_btn").click(function(){
			$("#brandForm").submit();
		 });
		 });
     </script>
	 

	 


 </div>
</section>
</body>
</html>
